package com.yonyougov.devops.cruxcisupport.button;

import com.yonyougov.devops.cruxcisupport.button.vo.ButtonByMenuIdRespVo;
import com.yonyougov.devops.cruxcisupport.button.vo.CurrentUserButtonByMenuCodeDto;
import com.yonyougov.devops.cruxcisupport.button.vo.NoLinkButtonByRoleIdDto;
import com.yonyougov.devops.cruxcisupport.button.vo.NoLinkButtonByRoleIdVo;
import com.yonyougov.devops.fwc.core.dao.BaseDao;

import java.math.BigInteger;
import java.util.List;

/**
 * t_button数据层
 */
public interface ButtonDao extends BaseDao<ButtonEntity, BigInteger> {
    //<!--用户自定义代码开始-->


    List<NoLinkButtonByRoleIdVo> findNoLinkButtonByRoleId(NoLinkButtonByRoleIdDto noLinkButtonByRoleIdDto);

    List<ButtonByMenuIdRespVo> findButtonByMenuCode(CurrentUserButtonByMenuCodeDto currentUserButtonByMenuIdDto);

    int countNoLinkButtonByRoleId(NoLinkButtonByRoleIdDto noLinkButtonByRoleIdDto);
    //<!--用户自定义代码结束-->
}
